const fs = require('fs');
const path = require('path');

// 这里配置基本信息
const AlipayBaseConfig = {
    appId: '2016101200672059', // 应用 ID
    privateKey: fs.readFileSync(path.join(__dirname, './sandbox-pem/private_pem2048.txt'), 'ascii'), // 应用私钥
    alipayPublicKey: 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlgYQ2xIvtkceTX/RIHG1utfa2jBJWTolIKlnS4YNbfDTiBe7zYqYBzSHNZajBVqVoHj0I+0fZthBnija80+m1TthV81kZYTAyWUxj5uWGPRWHI6LcfAp3zAFmvSUccBJOFcQC34w7M8qnxTlonwTabrRAe5HjbTHyfWLOhgcG9XDeipq36hoEjdl7QKBPJWkAJEAH8eM33la/EamD3mbfKlpfOCrEx7rkScYAKTARZQeNZ/Pw/lWDRUQid3MB98B5z+iwNm9UZxUdkkWSLQe0dqWrZEdIQt9pnyPHOlVBNqt/DA2Ne5NkBguTamU8SoQ+Brf8L4Nejl7umtO5lYslQIDAQAB',// 支付宝公钥(不是应用公钥!!!)
    gateway: 'https://openapi.alipaydev.com/gateway.do', // 支付宝的应用网关
    charset:'utf-8',
    version:'1.0',
    signType:'RSA2'
};

module.exports = {
    AlipayBaseConfig: AlipayBaseConfig,
}